package com.neuedu.his.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.neuedu.his.mapper.RegisterMapper;
import com.neuedu.his.po.Register;
import com.neuedu.his.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class RegisterServiceImpl implements RegisterService {

    @Autowired
    private RegisterMapper registerMapper;

    // 新增挂号记录
    @Override
    public void addNewReg(Register register) {
        // 设置挂号时间
        register.setRegisttime(new Date());
        // 设置看诊状态为已挂号
        register.setVisitstate(1);
        registerMapper.insert(register);
    }
}

